package com.xxzuibang.day9.继承;

public class NotePad extends Computer{
    private String color;

    public NotePad(String cpu, String memory, String disk, String color) {
        super(cpu, memory, disk);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public String getDetails() {
        return super.getDetails()+ "颜色为：" +color;
    }
}
